﻿using System.IO;
using Styx.Helpers;
using Styx.Common;

namespace TeleportDetector
{
    public class MIRsettings : Settings
    {
        public static readonly MIRsettings Instance = new MIRsettings();

        public MIRsettings()
            : base(Path.Combine(Utilities.AssemblyDirectory,
                                string.Format(@"Plugins/TeleportDetector/Settings/TeleportDetector-Settings-{0}.xml", "Global"))
                )
        {

        }

        [Setting]
        public string CharacterName { get; set; }

        [Setting]
        public bool Authorized { get; set; }

        [Setting, DefaultValue("wth")]
        public string Message { get; set; }

        [Setting, DefaultValue(300)]
        public int LeashDistance { get; set; }
    }
}